package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Recommend;
import cn.wolfcode.luowowo.query.RecommendQueryObject;
import cn.wolfcode.luowowo.query.StrategyThemeCopyQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRecommendService {
    /**
     * 查询列表
     * @param qo
     * @return
     */
    PageInfo query(RecommendQueryObject qo);

    void deleteById(Long id);

    void saveOrUpdate(Recommend recommend);

    List<Recommend> selectAllRecommendsByMonth(RecommendQueryObject qo);


    /**
     * 通过主题id查询攻略
     * @param qo
     * @return
     */
    List<Recommend> selectAllByThemeId(StrategyThemeCopyQueryObject qo);

}
